﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class Teacher : System.Web.UI.Page
{
    string sql_select_all_teacher_sidebar=@"select * from Teacher_Info";
  

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Select();
        }
    }
  
    public void Select()
    {
        string sql = string.Format(sql_select_all_teacher_sidebar);
        DataTable dt = DataAccess.GetDataTable(sql, null);
        teaList.DataSource = dt;
        teaList.DataBind();

    }


}